package com.ipt.frm.hola;

import java.util.HashSet;
import java.util.Set;

import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;

@ApplicationPath("rest")
public class MyApp extends Application {
	@Override
	public Set<Class<?>> getClasses() {
		Set<Class<?>> classes = new HashSet<Class<?>>();
		// register root resource
		classes.add(com.wordnik.swagger.jaxrs.JaxrsApiReader.class);
		classes.add(com.wordnik.swagger.jaxrs.listing.ApiListingResource.class);

		classes.add(com.wordnik.swagger.jaxrs.listing.ApiDeclarationProvider.class);
		classes.add(com.wordnik.swagger.jaxrs.listing.ApiListingResourceJSON.class);
		classes.add(com.wordnik.swagger.jaxrs.listing.ResourceListingProvider.class);

		addRestResourceClasses(classes);
		return classes;
	}

	/**
	 * Do not modify addRestResourceClasses() method. It is automatically
	 * populated with all resources defined in the project. If required, comment
	 * out calling this method in getClasses().
	 */
	private void addRestResourceClasses(Set<Class<?>> resources) {
		resources.add(com.ipt.frm.hola.Hello.class);
		resources.add(com.ipt.frm.hola.Goodby.class);
	}
}
